<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>与java运算符的区别</title>
</head>
<body>
    
</body>
<script>
    //跟java的运算符基本相同，目前的区别
    let num1='10';
    let num2=10;
    //两个等号只比较他们的里面的内容是否相等
    document.write(num1==num1);//true
    //三个等号比较他们的数据类型和内容是否相等
    document.write(num1===num2);//false
</script>
</html>